

            function addArduinoCod (Blockly) {
            
                        
                        
                        
                        

                        
        Blockly.Arduino['EXT_DS1302_SENSOR_BLOCK_1608002855605'] = function(block)
        {
            let clk = this.getFieldValue('clk');
let dat = this.getFieldValue('dat');
let rst = this.getFieldValue('rst');
          
            Blockly.Arduino.definitions_['include_EXT_DS1302_SENSOR_BLOCK_1608002855605'] = `\n#include "DS1302.h"`;
            Blockly.Arduino.definitions_['define_EXT_DS1302_SENSOR_BLOCK_1608002855605'] = `DS1302 rtc(${rst}, ${dat}, ${clk});`;
            Blockly.Arduino.definitions_['setup_EXT_DS1302_SENSOR_BLOCK_1608002855605'] = ``;
             return  `\r\n`;
        }
                    

                        
        Blockly.Arduino['EXT_DS1302_SENSOR_BLOCK_1608002855715'] = function(block)
        {
            let year =  Blockly.Arduino.valueToCode(this, 'year', Blockly.Arduino.ORDER_ATOMIC);
let month =  Blockly.Arduino.valueToCode(this, 'month', Blockly.Arduino.ORDER_ATOMIC);
let day =  Blockly.Arduino.valueToCode(this, 'day', Blockly.Arduino.ORDER_ATOMIC);
          
            Blockly.Arduino.definitions_['include_EXT_DS1302_SENSOR_BLOCK_1608002855715'] = ``;
            Blockly.Arduino.definitions_['define_EXT_DS1302_SENSOR_BLOCK_1608002855715'] = ``;
            Blockly.Arduino.definitions_['setup_EXT_DS1302_SENSOR_BLOCK_1608002855715'] = ``;
             return  `rtc.setDate(${day}, ${month}, ${year});\r\n`;
        }
                    

                        
        Blockly.Arduino['EXT_DS1302_SENSOR_BLOCK_1608002855877'] = function(block)
        {
            let time =  Blockly.Arduino.valueToCode(this, 'time', Blockly.Arduino.ORDER_ATOMIC);
let minute =  Blockly.Arduino.valueToCode(this, 'minute', Blockly.Arduino.ORDER_ATOMIC);
let second =  Blockly.Arduino.valueToCode(this, 'second', Blockly.Arduino.ORDER_ATOMIC);
          
            Blockly.Arduino.definitions_['include_EXT_DS1302_SENSOR_BLOCK_1608002855877'] = ``;
            Blockly.Arduino.definitions_['define_EXT_DS1302_SENSOR_BLOCK_1608002855877'] = ``;
            Blockly.Arduino.definitions_['setup_EXT_DS1302_SENSOR_BLOCK_1608002855877'] = ``;
             return  `rtc.setTime(${time}, ${minute}, ${second});\r\n`;
        }
                    

                        
        Blockly.Arduino['EXT_DS1302_SENSOR_BLOCK_1608002856003'] = function(block)
        {
            let times = this.getFieldValue('times');
          
            Blockly.Arduino.definitions_['include_EXT_DS1302_SENSOR_BLOCK_1608002856003'] = ``;
            Blockly.Arduino.definitions_['define_EXT_DS1302_SENSOR_BLOCK_1608002856003'] = ``;
            Blockly.Arduino.definitions_['setup_EXT_DS1302_SENSOR_BLOCK_1608002856003'] = ``;
             return  [`rtc.${times}`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        